//package com.qf.eduadmin.myinterceptor;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Mr.Liu
 * @date 2021/12/26 19:29
 */
/*
@Configuration
public class InterceptorConfig implements WebMvcConfigurer {
    @Autowired
    private MyInterceptor myInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(myInterceptor).
                addPathPatterns("/**").
                excludePathPatterns("/captcha").
                excludePathPatterns("/user/**").
                excludePathPatterns("/index.html").
                excludePathPatterns("/login/login.html").
                excludePathPatterns("/api/**").
                excludePathPatterns("/css/**").
                excludePathPatterns("/images/**").
                excludePathPatterns("/js/**").
                excludePathPatterns("/lib/**").
                excludePathPatterns("/classify/**").
                excludePathPatterns("/course/**").
                excludePathPatterns("/login/**").
                excludePathPatterns("/page/**").
                excludePathPatterns("/permission/**").
                excludePathPatterns("/role/**").
                excludePathPatterns("/teacher/**").
                excludePathPatterns("/user/**");
    }
}
*/
